Repository navigation
fix(confirm): update existing SFTP project dir instead of creating a case variant - #39
Merged
Merged
Conversation
- Sync dw_openframe_user_project template in cf setup and cf repo update - Harden double_wide macros and wrapper with LibreLane 3 via project flake - cf status shows only the linked platform project's SFTP rows - Bump cf-cli to 2.7.3 Co-authored-by: Cursor <cursoragent@cursor.com>
…case variant cf push can land files under the local folder name (e.g. af-r2) while project.json carries the platform name (AF-R2). cf confirm previously wrote project.json to incoming/projects/<project.json name>, creating a second directory that held only project.json. The shuttle importer then picked the json-only copy and failed with 'Wrapper file not found'. Confirm now resolves the existing directory by platform_project_id (preferring the one with the wrapper GDS), then by case-insensitive name, and only creates a new directory when neither exists. Json-only duplicate directories for the same project are removed after the Final project.json is uploaded. Bump version to 2.7.3. Co-authored-by: Cursor <cursoragent@cursor.com>
ubuntu-latest now resolves to Ubuntu 26.04, which has no Python 3.8 in the setup-python toolcache, so the 3.8 job fails before running tests. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
cf pushcan land files under the local folder name (e.g.af-r2), whileproject.jsoncarries the platform name (AF-R2).cf confirmwroteproject.jsontoincoming/projects/<project.json name>, creating a second directory that held onlyproject.json. The shuttle importer then selected the json-only copy and failed withWrapper file not found for unknown project type.Change
cf confirmnow resolves the existing SFTP directory before uploading:project.jsonhas the sameplatform_project_id, preferring the one containing the wrapper GDS.incoming/projects/<project name>.project.json, json-only duplicate directories for the same project are removed.Testing
tests/test_confirm_command.py: 9 passing (directory resolution, duplicate detection, SFTP candidate listing against a fake SFTP tree).Made with Cursor